package com.aspose.cells;

public class TableStyleCollection extends CollectionBase {
   private WorksheetCollection b;
   private Object c = 30;
   private String d = "PivotStyleLight16";

   String a() {
      if (this.c == null) {
         return null;
      } else {
         return this.c instanceof String ? (String)this.c : zbsj.a((Integer)this.c);
      }
   }

   void a(String var1) {
      int var2 = zbsj.a(var1);
      if (var2 != 61 && var2 != 0) {
         this.c = var2;
      } else {
         this.c = var1;
      }

   }

   String b() {
      return this.d;
   }

   void b(String var1) {
      this.d = var1;
   }

   WorksheetCollection c() {
      return this.b;
   }

   TableStyleCollection(WorksheetCollection worksheets) {
      this.b = worksheets;
   }

   public int addTableStyle(String name) {
      TableStyle var2 = new TableStyle(this, name);
      var2.a(false);
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var2);
      return this.getCount() - 1;
   }

   public int addPivotTableStyle(String name) {
      TableStyle var2 = new TableStyle(this, name);
      var2.b(false);
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var2);
      return this.getCount() - 1;
   }

   int c(String var1) {
      TableStyle var2 = new TableStyle(this, var1);
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var2);
      return this.getCount() - 1;
   }

   public TableStyle get(int index) {
      return (TableStyle)this.a.get(index);
   }

   public TableStyle get(String name) {
      name = name.toUpperCase();

      for(int var2 = 0; var2 < this.a.size(); ++var2) {
         TableStyle var3 = (TableStyle)this.a.get(var2);
         if (com.aspose.cells.b.a.zv.b(var3.getName().toUpperCase(), name)) {
            return var3;
         }
      }

      return null;
   }

   public TableStyle getBuiltinTableStyle(int type) {
      switch(type) {
      case 1:
         return zdw.a(this.b);
      case 2:
         return zdw.b(this.b);
      case 3:
         return zdw.c(this.b);
      case 4:
         return zdw.d(this.b);
      case 5:
         return zdw.e(this.b);
      case 6:
         return zdw.f(this.b);
      case 7:
         return zdw.g(this.b);
      case 8:
         return zdw.h(this.b);
      case 9:
         return zdw.i(this.b);
      case 10:
         return zdw.j(this.b);
      case 11:
         return zdw.k(this.b);
      case 12:
         return zdw.l(this.b);
      case 13:
         return zdw.m(this.b);
      case 14:
         return zdw.n(this.b);
      case 15:
         return zdw.o(this.b);
      case 16:
         return zdw.p(this.b);
      case 17:
         return zdw.q(this.b);
      case 18:
         return zdw.r(this.b);
      case 19:
         return zdw.s(this.b);
      case 20:
         return zdw.t(this.b);
      case 21:
         return zdw.u(this.b);
      case 22:
         return zdw.v(this.b);
      case 23:
         return zdw.w(this.b);
      case 24:
         return zdw.x(this.b);
      case 25:
         return zdw.y(this.b);
      case 26:
         return zdw.z(this.b);
      case 27:
         return zdw.A(this.b);
      case 28:
         return zdw.B(this.b);
      case 29:
         return zdw.C(this.b);
      case 30:
         return zdw.D(this.b);
      case 31:
         return zdw.E(this.b);
      case 32:
         return zdw.F(this.b);
      case 33:
         return zdw.G(this.b);
      case 34:
         return zdw.H(this.b);
      case 35:
         return zdw.I(this.b);
      case 36:
         return zdw.J(this.b);
      case 37:
         return zdw.K(this.b);
      case 38:
         return zdw.L(this.b);
      case 39:
         return zdw.M(this.b);
      case 40:
         return zdw.N(this.b);
      case 41:
         return zdw.O(this.b);
      case 42:
         return zdw.Q(this.b);
      case 43:
         return zdw.P(this.b);
      case 44:
         return zdw.R(this.b);
      case 45:
         return zdw.S(this.b);
      case 46:
         return zdw.T(this.b);
      case 47:
         return zdw.U(this.b);
      case 48:
         return zdw.V(this.b);
      case 49:
         return zdw.W(this.b);
      case 50:
         return zdw.X(this.b);
      case 51:
         return zdw.Y(this.b);
      case 52:
         return zdw.Z(this.b);
      case 53:
         return zdw.aa(this.b);
      case 54:
         return zdw.ab(this.b);
      case 55:
         return zdw.ac(this.b);
      case 56:
         return zdw.ad(this.b);
      case 57:
         return zdw.ae(this.b);
      case 58:
         return zdw.af(this.b);
      case 59:
         return zdw.ag(this.b);
      case 60:
         return zdw.ah(this.b);
      default:
         return null;
      }
   }

   TableStyle a(int var1) {
      switch(var1) {
      case 0:
         return zdv.a(this.b);
      case 1:
         return zdv.D(this.b);
      case 2:
         return zdv.O(this.b);
      case 3:
         return zdv.Y(this.b);
      case 4:
         return zdv.Z(this.b);
      case 5:
         return zdv.aa(this.b);
      case 6:
         return zdv.ab(this.b);
      case 7:
         return zdv.ac(this.b);
      case 8:
         return zdv.ad(this.b);
      case 9:
         return zdv.ae(this.b);
      case 10:
         return zdv.E(this.b);
      case 11:
         return zdv.F(this.b);
      case 12:
         return zdv.G(this.b);
      case 13:
         return zdv.H(this.b);
      case 14:
         return zdv.I(this.b);
      case 15:
         return zdv.J(this.b);
      case 16:
         return zdv.K(this.b);
      case 17:
         return zdv.L(this.b);
      case 18:
         return zdv.M(this.b);
      case 19:
         return zdv.N(this.b);
      case 20:
         return zdv.P(this.b);
      case 21:
         return zdv.Q(this.b);
      case 22:
         return zdv.R(this.b);
      case 23:
         return zdv.S(this.b);
      case 24:
         return zdv.T(this.b);
      case 25:
         return zdv.U(this.b);
      case 26:
         return zdv.V(this.b);
      case 27:
         return zdv.W(this.b);
      case 28:
         return zdv.X(this.b);
      case 29:
         return zdv.af(this.b);
      case 30:
         return zdv.aq(this.b);
      case 31:
         return zdv.aA(this.b);
      case 32:
         return zdv.aB(this.b);
      case 33:
         return zdv.aC(this.b);
      case 34:
         return zdv.aD(this.b);
      case 35:
         return zdv.aE(this.b);
      case 36:
         return zdv.aF(this.b);
      case 37:
         return zdv.aG(this.b);
      case 38:
         return zdv.ag(this.b);
      case 39:
         return zdv.ah(this.b);
      case 40:
         return zdv.ai(this.b);
      case 41:
         return zdv.aj(this.b);
      case 42:
         return zdv.ak(this.b);
      case 43:
         return zdv.al(this.b);
      case 44:
         return zdv.am(this.b);
      case 45:
         return zdv.an(this.b);
      case 46:
         return zdv.ao(this.b);
      case 47:
         return zdv.ap(this.b);
      case 48:
         return zdv.ar(this.b);
      case 49:
         return zdv.as(this.b);
      case 50:
         return zdv.at(this.b);
      case 51:
         return zdv.au(this.b);
      case 52:
         return zdv.av(this.b);
      case 53:
         return zdv.aw(this.b);
      case 54:
         return zdv.ax(this.b);
      case 55:
         return zdv.ay(this.b);
      case 56:
         return zdv.az(this.b);
      case 57:
         return zdv.b(this.b);
      case 58:
         return zdv.m(this.b);
      case 59:
         return zdv.w(this.b);
      case 60:
         return zdv.x(this.b);
      case 61:
         return zdv.y(this.b);
      case 62:
         return zdv.z(this.b);
      case 63:
         return zdv.A(this.b);
      case 64:
         return zdv.B(this.b);
      case 65:
         return zdv.C(this.b);
      case 66:
         return zdv.c(this.b);
      case 67:
         return zdv.d(this.b);
      case 68:
         return zdv.e(this.b);
      case 69:
         return zdv.f(this.b);
      case 70:
         return zdv.g(this.b);
      case 71:
         return zdv.h(this.b);
      case 72:
         return zdv.i(this.b);
      case 73:
         return zdv.j(this.b);
      case 74:
         return zdv.k(this.b);
      case 75:
         return zdv.l(this.b);
      case 76:
         return zdv.n(this.b);
      case 77:
         return zdv.o(this.b);
      case 78:
         return zdv.p(this.b);
      case 79:
         return zdv.q(this.b);
      case 80:
         return zdv.r(this.b);
      case 81:
         return zdv.s(this.b);
      case 82:
         return zdv.t(this.b);
      case 83:
         return zdv.u(this.b);
      case 84:
         return zdv.v(this.b);
      default:
         return null;
      }
   }
}
